package com.laijiale.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author laijiale
 * @date 2024年07月28日 11:57
 */
@Schema(description = "权限添加DTO")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PermissionInsertDTO implements Serializable {
    @NotEmpty(message = "权限名称不能为空")
    @Schema(description = "权限名称")
    private String title;
    @Schema(description = "地址栏")
    @NotEmpty(message = "地址栏不能为空")
    private String url;
    @Schema(description = "权限图标")
    @NotEmpty(message = "权限图标不能为空")
    private String icon;
    @Schema(description = "父权限主键")
    @NotNull(message = "父权限主键不能为空")
    private Long pid;
    @Schema(description = "权限信息")
    @NotEmpty(message = "权限信息不能为空")
    private String info;


}
